package com.yjha.ai.demos.web.value;

import lombok.Data;

import java.util.List;

@Data
public class DataHistogram {
    // 成员变量
    private List<String> labels;
    private List<Datasets> datasets;

    public DataHistogram(List<String> labels, List<Datasets> datasets) {
        this.labels = labels;
        this.datasets = datasets;
    }

    // 重写toString方法以便打印对象内容
    @Override
    public String toString() {
        return "{" +
                "\"labels\":" + labels +
                ", \"datasets\":" + datasets +
                '}';
    }

}
